import Vue from 'vue'
import Vuex from 'vuex'
import App from './App.vue'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import VueRouter from 'vue-router'
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios);



//引入store
import {store} from './store/index'

//引入静态路由表（配置表量）
import {routes} from './routes';


Vue.use(MintUI);
Vue.use(Vuex);
Vue.use(VueRouter);



//将路由变量实例化成路由对象
const router =new VueRouter({
  routes,
	mode:"history" //mdoe可以已设置成history 也可以设置成hash
})


new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
